<template>
    <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="name" label="用户名" width="180" />
        <el-table-column prop="account" label="账号" width="180" />
        <el-table-column prop="createTime" label="创建时间" />
        <el-table-column label="操作">
            <el-button type="primary">禁用</el-button>
            <el-button type="primary">查看评论</el-button>
        </el-table-column>
    </el-table>
</template>

<script>
import { reactive } from 'vue'
export default {
    name: "UserInfo",
    setup () {
        const tableData = reactive([
            {
                name: '张三',
                account: '111111',
                createTime: '2016-05-03',
            },
            {
                name: '张三',
                account: '111111',
                createTime: '2016-05-03',
            }, {
                name: '张三',
                account: '111111',
                createTime: '2016-05-03',
            }, {
                name: '张三',
                account: '111111',
                createTime: '2016-05-03',
            }, {
                name: '张三',
                account: '111111',
                createTime: '2016-05-03',
            }, {
                name: '张三',
                account: '111111',
                createTime: '2016-05-03',
            },
        ])
        return {
            tableData
        }
    }
}
</script>

<style></style>